﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Coldairarrow.Entity.PB
{
    /// <summary>
    /// PB_OutsourcingBill
    /// </summary>
    [Table("PB_OutsourcingBill")]
    public partial class PB_OutsourcingBill
    {

        /// <summary>
        /// Id
        /// </summary>
        [Key, Column(Order = 1)]
        public String Id { get; set; }

        /// <summary>
        /// 创建者Id
        /// </summary>
        public String CreatorId { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 删除状态：0=未删除；1＝已删除；
        /// </summary>
        public Boolean? Deleted { get; set; }

        /// <summary>
        /// 单号
        /// </summary>
        public String BillCode { get; set; }

        /// <summary>
        /// 外协日期
        /// </summary>
        public DateTime? OutsourcingDate { get; set; }

        /// <summary>
        /// 关联单号
        /// </summary>
        public String RefCode { get; set; }

        /// <summary>
        /// 外协单位Id
        /// </summary>
        public String OutsourcingCompanyId { get; set; }

        /// <summary>
        /// 预计完工日期
        /// </summary>
        public DateTime? ExpectedDate { get; set; }

        /// <summary>
        /// 项目Id
        /// </summary>
        public String ProjectId { get; set; }

        /// <summary>
        /// 工序Id
        /// </summary>
        public String WorkingProcedureId { get; set; }

        /// <summary>
        /// 税率
        /// </summary>
        public Double? Rate { get; set; }

        /// <summary>
        /// 理论重量
        /// </summary>
        public Double? TheoreticalWT { get; set; }

        /// <summary>
        /// 单价
        /// </summary>
        public Double? Price { get; set; }

        /// <summary>
        /// 金额
        /// </summary>
        public Double? Amount { get; set; }

        /// <summary>
        /// 实际重量（过砰反填）
        /// </summary>
        public Double? Weight { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public String Remark { get; set; }

        /// <summary>
        /// 审核人Id
        /// </summary>
        public String AuditUserId { get; set; }

        /// <summary>
        /// 审核时间
        /// </summary>
        public DateTime? AuditTime { get; set; }

        /// <summary>
        /// 状态:0-待审核；1-已审核；2-待装车；3-装车完成；4-已离厂；5-部分回货；6-回货完成
        /// </summary>
        public Int32? Status { get; set; }
        /// <summary>
        /// 签收人ID
        /// </summary>
        public String SignforNameId { get; set; }
        /// <summary>
        /// 签收时间
        /// </summary>
        public DateTime? SignforTime { get; set; }
        /// <summary>
        /// 签收状态
        /// </summary>
        public Int32? SignforStatus { get; set; }
        /// <summary>
        /// 机构ID
        /// </summary>
        public String DeptId { get; set; }
        /// <summary>
        /// 二维码
        /// </summary>
        public String QrCode { get; set; }
        /// <summary>
        /// 外协任务名称
        /// </summary>
        public String OutName { get; set; }
        /// <summary>
        /// 回货反填实际重量
        /// </summary>
        public Double? BackWeight { get; set; }

        /// <summary>
        /// 外包单类型:0-翻新;1-新制;
        /// </summary>
        public Int32? OutBillType { get; set; }

    }
}